﻿using System;
using System.Web.Mvc;
using CodeCampServerLite.UI.Helpers;

namespace CodeCampServerLite.UI.Controllers
{
	[HandleError(View = "Error", Order = 100)]
	public abstract class DefaultController : Controller
	{
		protected XmlResult<T> Xml<T>(T toSerialize)
		{
			return new XmlResult<T>
			{
				ModelToSerialize = toSerialize
			};
		}

	}
}
